package com.stronger.pettern.decorator.decorator2;
/**
 * 具体装饰角色
 */
public class DogDecorator extends AbDecoratorAnimal{
    public DogDecorator(Animal animal) {
        super(animal);
    }

    public void eatBone(){
        System.out.println("dog eat bone");
    }

    @Override
    public void sleep(){
        super.sleep();
        eatBone();
    }
}
